﻿<%@ Control Language="vb" AutoEventWireup="false" Explicit="true" codefile="TopNew.ascx.vb" Inherits="NVPortal.Modules.NVNews.TopView" %>
<style type="text/css">
.NVNewsLasted_table {padding: 10px 5px; border-bottom: dotted 1px #aaaaaa;}    
.NVNewsLasted_IMG {background: none repeat scroll 0 0 white;
    border: 0 none;
    border-radius: 3px 3px 3px 3px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
    padding: 0;
    width: 100px; }
.TopViewtitle {color: #434343;
    display: block;
    font-family: Times New Roman; font-size: 20px; padding: 5px;
    text-shadow: 1px 1px 0 #ffffff; background: #ececec; border-top: solid 1px #434343;
    text-transform: uppercase;}    
.NVNewsLasted_Title, a.NVNewsLasted_Title:link {font-family: Tahoma; font-size: 12px; font-weight: bold; color: #666666; line-height: 110%;}    
a.NVNewsLasted_Title:visited {font-family: Tahoma; font-size: 12px; font-weight: bold; color: #000;}    
</style>
<span class="TopViewtitle">Bài mới nhất</span>
<asp:datagrid id="drgOtherNews" Width="100%" CellPadding="0" CellSpacing="0" runat="server" GridLines="None" ShowHeader="False" AutoGenerateColumns="False"
	AllowPaging="False" PageSize="5">
	<Columns>
		<asp:TemplateColumn HeaderText="C&#225;c tin kh&#225;c">
			<ItemTemplate>
			    <table class="NVNewsLasted_table" cellpadding="0" cellspacing="0" border="0" width="100%"><tr>
                    <td style="vertical-align: top; padding: 0px 0 0 5px; font-family: Tahoma; font-size: 12px;">
                       <img src="/images/grant.gif" alt="" /><asp:HyperLink id='hplOtherNews' Target=_blank CssClass="NVNewsLasted_Title" runat="server" ToolTip='<%# Server.HtmlDecode(DataBinder.Eval(Container.DataItem,"summary"))%>' NavigateUrl='<%# FormatURL("noidung",DataBinder.Eval(Container.DataItem,"newid"),DataBinder.Eval(Container.DataItem,"Title")) %>' text='<%# DataBinder.Eval(Container.DataItem,"title")%>'></asp:HyperLink><br />
                       Người đăng: <asp:Label ID="lbluser" runat="server" Text='<%#GetUser (DataBinder.Eval(Container.DataItem,"userid")) %>'></asp:Label>
                    </td>				    
				    </tr></table>
			</ItemTemplate>
		</asp:TemplateColumn>
	</Columns>
	
</asp:datagrid>
